package cn.gailvlun.gll.mgr.upload;

import com.alibaba.sdk.android.oss.ClientException;
import com.alibaba.sdk.android.oss.ServiceException;
import com.alibaba.sdk.android.oss.model.PutObjectRequest;



public class OSSException extends Throwable {

    public OSSException(PutObjectRequest req, ClientException clientException, ServiceException serviceException) {
        this.mPutObjectRequest = req;
        this.mClientException = clientException;
        this.mServiceException = serviceException;
    }

    public static OSSException create(PutObjectRequest req, ClientException clientException, ServiceException serviceException) {
        return new OSSException(req, clientException, serviceException);
    }

    private ClientException mClientException;
    private ServiceException mServiceException;
    private PutObjectRequest mPutObjectRequest;

    public ClientException getClientException() {
        return mClientException;
    }

    public void setClientException(ClientException clientException) {
        mClientException = clientException;
    }

    public ServiceException getServiceException() {
        return mServiceException;
    }

    public void setServiceException(ServiceException serviceException) {
        mServiceException = serviceException;
    }

    public PutObjectRequest getPutObjectRequest() {
        return mPutObjectRequest;
    }

    public void setPutObjectRequest(PutObjectRequest putObjectRequest) {
        mPutObjectRequest = putObjectRequest;
    }
}
